AHP® GT Controllers API
AHP GT Controllers
Loading...
Searching...
No Matches
Functions
Multi-device addressing

Functions

DLL_EXPORT int ahp_gt_detect_device ()
 Detect the currently selected device.
 
DLL_EXPORT void ahp_gt_select_device (int address)
 Select a device on a serial bus.
 
DLL_EXPORT int ahp_gt_get_current_device ()
 Obtain the current device address.
 
DLL_EXPORT void ahp_gt_set_address (int address)
 Change the current device address.
 
DLL_EXPORT int ahp_gt_get_address ()
 Get the current device address.
 

Detailed Description

Function Documentation

◆ ahp_gt_detect_device()

DLL_EXPORT int ahp_gt_detect_device ( )
Returns
-1 if no devices were detected, 0 if a device with the current address is present

◆ ahp_gt_get_address()

DLL_EXPORT int ahp_gt_get_address ( )
Returns
the address of the connected GT Controller

◆ ahp_gt_get_current_device()

DLL_EXPORT int ahp_gt_get_current_device ( )
Returns
-1 if no devices were detected at all, or currently selected device address

◆ ahp_gt_select_device()

DLL_EXPORT void ahp_gt_select_device ( int  address)
Parameters
addressThe address to query on bus

◆ ahp_gt_set_address()

DLL_EXPORT void ahp_gt_set_address ( int  address)
Parameters
addressThe bus address to set on the connected GT Controller